package com.zpark.it.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zpark.it.pojo.Admin;
import com.zpark.it.pojo.LoginForm;
import org.springframework.stereotype.Service;

/**
 * @Title: AdminService
 * @Author Charles
 * @Package com.zpark.it.service
 * @Date 2023/7/29 21:07
 */

public interface  AdminService extends IService<Admin> {
    /**
     * 登录
     * @param loginForm
     * @return
     */
    Admin login(LoginForm loginForm);

    Admin getAdminById(Long userId);

    IPage<Admin> getAdminsByOpr(Page<Admin> pageParam, String adminName);
}
